//package com.liyi.controller;
//
//import com.liyi.service.DeptService;
//import io.swagger.annotations.ApiImplicitParam;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//import springcloud.entities.Dept;
//
//import java.util.List;
//
//
//@RestController
//public class DeptController
//{
//	@Autowired
//	private DeptService service;
//
//	@RequestMapping(value = "/dept/add", method = RequestMethod.POST)
//	public boolean add(@RequestBody Dept dept)
//	{
//		return service.add(dept);
//	}
//
//	@ApiOperation(value="获取部门信息", notes="根据url的id来获取部门详细信息")
//	@ApiImplicitParam(name = "id", value = "部门ID", required = true, dataType = "String", paramType = "path")
//	@RequestMapping(value = "/dept/get/{id}", method = RequestMethod.GET)
//	public Dept get(@PathVariable("id") Long id)
//	{
//		return service.get(id);
//	}
//
//	@ApiOperation(value="获取所有部门", notes="根据url获取所有部门的详细信息")
//	@RequestMapping(value = "/dept/list", method = RequestMethod.GET)
//	public List<Dept> list()
//	{
//		return service.list();
//	}
//
//}
